package cn.edu.scau.cmi.linpeijunchapter4;

import java.util.*;

public class Yanghuitangle {
		public static void main(String args[]) {
			int n;
			Scanner reader = new Scanner(System.in);
			n = reader.nextInt();
			int[][] a = new int[n+10][n*2+10];
			a[0][n] = 1;
			for(int i=1;i<n;i++)
			{
				for(int j=1;j<=2*n-1;j++)
				{
					a[i][j] = a[i-1][j-1]+a[i-1][j+1];
					//System.out.printf("i=%d j=%d %d\n",i,j,a[i][j]);
				}
			}
			for(int i=0;i<n;i++)
			{
				for(int j=1;j<=2*n-1;j++)
				{
					if(a[i][j]!=0) System.out.print(a[i][j]);
					else System.out.print(" ");
				}
				System.out.println();
			}
		}
}